/**
 * 
 */
package com.skood.common.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.skood.common.model.SearchModel;

/**
 * @author keege
 * @date 2013-12-7
 * DAO通用继承接口
 */
public interface CommonDAO<T> {
	public List<T> search(@Param("searchModel")SearchModel<T> searchModel,@Param("parameters")Map<String, Object> parameters);
	public Long searchCount(@Param("searchModel")SearchModel<T> searchModel,@Param("parameters")Map<String, Object> parameters);
	public void delete(@Param("ids")Long[] ids);
	
	public void save(@Param("entityBean") T entityBean, @Param("parameters")Map<String,Object> parameters);
}
